import { PageForm } from "@/api/interface";
export namespace Receipt {
  export namespace Params {
    export interface Select extends PageForm {}

    export interface BankList {
        dictType: 'bank_code'
    }

    export interface AddOrUpdateContent {
        id?: string
        accountName?: string // 真实姓名
        cardNo?: string // 收款账号（银行卡号）
        bank?: string // 银行名称
        cardCode?: string // 对应图片
        accountDirection?: 'DG' | 'GR' // 收款方向(对公/个人)
        cardType?: 1 | 2 | 3 // 收款方式(微信/支付宝/银行卡)
        typeDefault?: 0 | 1 // 是否默认
        remark?: string // 备注
    }

    export interface BankInfo {
        img?: string
        cardNo?: string
    }

    export interface Delete {
      ids: string[]
    }

    export interface setDefault {
      banKId: string
      typeDefault: string
    }
  }

  export namespace Res {
    export interface Info {
      count: number
      data: CollectionInfo[]
    }

    export interface BankInfo {
        bankCardNumber: string
        bankName: string
    }

    export interface CollectionInfo {
      accountDirection?: 'DG' | 'GR'
      accountName?: string
      cardNo?: string
      bank?: string
      cardCode?: string
      cardType?: 1 | 2 | 3
      delFlag?: string
      id?: string
      remark?: string
      typeDefault?: 0 | 1
      userId?: string
    }

    // 收款方式列表项
    export interface ReceiptMethod {
      id: number
      name: string
      status: 'ENABLED' | 'DISABLED'
      createdAt: string
      createBy: {
        id: number
        name: string
      }
    }
  }
}